﻿using System;
using System.Xml.Serialization;

namespace Bambit.XmlRpc
{
	/// <summary>
	/// Represents a parameter supplied to a method call
	/// </summary>
	[Serializable]
	[XmlType]
	[XmlRoot("param")]
	public class Parameter
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="Parameter"/> class.
		/// </summary>
		public Parameter()
		{
			Value = new Value();
		}

		/// <summary>
		/// Gets or sets the value.
		/// </summary>
		/// <value>The value of the parameter.</value>
		[XmlElement("value")]
		public Value Value { get; set; }

	}
}
